package com.hqyj.javaSpringBoot.modules.test.service;

import com.hqyj.javaSpringBoot.modules.common.entity.Result;
import com.hqyj.javaSpringBoot.modules.common.entity.SearchBean;
import com.hqyj.javaSpringBoot.modules.test.entity.Student;
import org.springframework.data.domain.Page;

import java.util.List;

public interface StudentService {

    Result<Student> insertStudent(Student student);

    Result<Student> editStudent(Student student);

    Result<Object> deleteStudent(int Id);

    Student getStudentById(int Id);

    List<Student> getStudents();

    Student findFirstByNameAndEmail(String name, String email);

    Student findFirstByAge(int age);

    Page<Student> getStudentsBySearchBean(SearchBean searchBean);
}
